package com.heima.admin.service.impl;

import com.heima.admin.service.IAuthService;
import com.heima.apis.apUser.IApUserClient;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.dtos.AuthDto;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
@Slf4j
public class AuthServiceImpl implements IAuthService {
    @Autowired
    private IApUserClient apUserClient;
    /**
     * 查询列表
     *
     * @param dto
     * @return
     */
    @Override
    public ResponseResult getAuthList(AuthDto dto) {
        return apUserClient.getAuthList(dto);
    }

    /**
     * 审核失败
     *
     * @param dto
     * @return
     */
    @Override
    public ResponseResult authFail(AuthDto dto) {
        return apUserClient.authFail(dto);
    }

    /**
     * 审核成功
     *
     * @param dto
     * @return
     */
    @Override
    public ResponseResult authPass(AuthDto dto) {
        return apUserClient.authPass(dto);
    }
}
